package com.agileai.pm.module.proc.handler;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.agileai.domain.DataParam;
import com.agileai.hotweb.controller.core.StandardEditHandler;
import com.agileai.hotweb.renders.LocalRenderer;
import com.agileai.hotweb.renders.ViewRenderer;

public class ProcWeeklyManageQueryHandler
        extends StandardEditHandler {
    public ProcWeeklyManageQueryHandler() {
        super();
    }
    public ViewRenderer prepareDisplay(DataParam param) {
    	
        setAttribute("START_TIME", getStartTime());
        setAttribute("END_TIME", getEndTime());
		processPageAttributes(param);
		return new LocalRenderer(getPage());
	}
	private  String  getStartTime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(new Date());
	}
	private String getEndTime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(new Date());
	}
	
}
